﻿using System.Windows.Forms;

namespace MINERP.NewPB.com {
	public sealed partial class ucPanel : Panel {
		public ucPanel() {
			InitializeComponent();
			SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
			DoubleBuffered = true; //设置本窗体
			SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲
		}
		protected override void WndProc(ref Message m) {
			if (m.Msg == 0x0014) {// 禁掉清除背景消息
				return;
			}
			base.WndProc(ref m);
		}
	}
}
